$(document).ready(function () {
    $("#login").click(function () {
        var phone=$("#phone").val();
        var password=$("#password").val()
        if(phone!=""&&password!=""){
            $.post({
                url:"/user/checkLoginInfo",
                data:{"phone":phone,"password":password},
                success:function (data) {
                    if(data.code==200){
                        window.location.assign("/index")
                    }else{
                        alert(data.msg);
                    }
                }
            })
        }
    });
})